Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Room scanning refactor #127

Merged
merged 12 commits into from
Nov 3, 2024
Merged

Room scanning refactor #127

merged 12 commits into from
Nov 3, 2024

Conversation

odtheking
Copy link
Owner

@odtheking odtheking commented Oct 24, 2024

i am thinking it would make more sense if the full room it self had rotation and room data
both those values are applicable for all room components

and then u would have only FullRoom data structure containing: rotation, data, claypos, waypoints, roomcomponents
and a room component data structure containing each rooms x and z and core which should be the only unique per component values

this would make it from having 3 data structures to 2
should also greatly improve syntax so u can do:
val roomName = event.fullRoom?.data.name ?: return
instead of:
val roomName = event.fullRoom?.room.data.name ?: return // <-- orb = orb.orb

Also implemented getRealCoords for PuzzleSolvers and added unique handling for fairy room

odtheking and others added 4 commits October 24, 2024 18:01
boulder solver needs implementation of new refactor
quiz blaze and weridos needs testing
Optimized scanning
Added fairy room support
@odtheking odtheking requested a review from freebonsai October 25, 2024 07:51
Copy link
Collaborator

@freebonsai freebonsai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much cleaner code with this refactor, just fix this stuff.

odtheking and others added 8 commits October 26, 2024 00:10
# Conflicts:
#	src/main/kotlin/me/odinmain/features/impl/dungeon/puzzlesolvers/BeamsSolver.kt
#	src/main/kotlin/me/odinmain/features/impl/dungeon/puzzlesolvers/IceFillSolver.kt
#	src/main/kotlin/me/odinmain/features/impl/dungeon/puzzlesolvers/QuizSolver.kt
#	src/main/kotlin/me/odinmain/utils/skyblock/dungeon/tiles/RoomData.kt
@odtheking odtheking merged commit d6550d0 into main Nov 3, 2024
2 checks passed
@odtheking odtheking deleted the Room-Scanning-Refactor branch November 3, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants